import Vue from 'vue';
import { post, get } from '@/utils/request';
export function orderlist(parm) {
    return post({
        url: Vue.prototype.$conf.baseUrl + '/h5/getH5OrderList',
        data: parm
    });
}
export function pushOrderNotice(parm) {
    return post({
        url:
            Vue.prototype.$conf.baseUrl +
            '/kaOrderList/pushOrderNotice',
        data: parm
    });
}
export function share(url) {
    return get({
        url:
            Vue.prototype.$conf.baseUrl +
            `/wepay/getJsApiInitParam?url=${url}`,
        setHeader: () => {
            return (config) => {
                console.log(config);
                config.headers['fromApp'] = 'wechat-ka-cargo-poublic-service';
                return config;
            };
        }
    });
}
